
/**
 * A Program to demonstrate counting down by 3
 * 
 * @author Amrita Mukherjee
 * @version 08/10/2012
 */
public class bBasicWhileLoop2
{
   public static void main(String[] args)
    {
        // declare and assign the loop variable count to 15
        int count = 15;
        
        //while count is greater than 0 print out the value of count
        while(count>0)
        {
            System.out.println("Count is: " + count);
            count = count - 3;
        }
        
        //this is rhe next statement after the while kiio
        System.out.println("After the loop.");
    }
}
/*
 * My test session:
 * Count is: 15
Count is: 12
Count is: 9
Count is: 6
Count is: 3
After the loop.

 */
